import request from '@/utils/request'

// 获取科目列表
export const getSubjectListService = () => request.get('/public/subject')

// 获取指定科目
export const getSubjectBySpecificService = (data: any) =>
	request.post(`/public/subject/specific`, data)

// 添加科目
export const addSubjectService = (data: any) =>
	request.post(`/public/subject`, data)

// 删除科目
export const deleteSubjectService = (data: any) =>
	request.delete(`/public/subject`, { data })

